export default function () {
    const TaskQueue = []
    
    return {
        push:(task) => TaskQueue.push(task),
        pop:() => TaskQueue.shift(),
        isEmpty:() => TaskQueue.length === 0
    }
}